<template>
  <div id="app">
    <transition>
      <router-view/>
    </transition>
   
    <tabbar v-if="flg"></tabbar>
  </div>
</template>

<script>
import tabbar from './components/tabbar.vue'
export default {
  data(){
    return {
        flg:true
    }
  },
   components:{
     tabbar
   },
  created(){
    if(this.$route.path=='/sreach'||this.$route.path=='/my'||this.$route.path=='/good_list'||this.$route.path=='/good_delit'){
                this.flg=false
            }else{
              this.flg=true
            }
  },
   watch:{
     "$route.path":function(){
         if(this.$route.path=='/sreach'||this.$route.path=='/my'||this.$route.path=='/good_list'||this.$route.path=='/good_delit'){
                this.flg=false
            }else{
              this.flg=true
            }
     }
   }
}
</script>

<style>
body{
  margin:0;
  padding: 0;
  box-sizing:border-box;
}
#app{
  overflow-x: hidden;
}
.v-enter{
  opacity: 0;
  transform:translateX(100%);
}
.v-leave-to{
  opacity: 0;
  transform: translateX(-100%);
  position:absolute;
}
.v-enter-active,
.v-leave-active{
  transition:all 0.5s ease;
}
</style>
